#!/bin/bash
#========================================================================
# Author: YSLin
# Email: 
# File Name: group.sh
# Description: 
#   
# Edit History: 
#   2011-04-29    File created.
#========================================================================
# grouping.sh - grouping的例子

# 使make與make install在背景執行
# 只有在make成功的時候，才去執行make install
{ make && make install; } & 

# 將檔案first、檔案second的內容連續寫到third中
{ cat first; cat second; } > third

echo "First"; echo "Second"
{ echo "Alpha"; echo "Beta"; }  # grouping
( echo "One"; echo "Two" )      # subshell

